using System;
using System.Collections.Generic;

namespace CSP.Model.CSP
{
    [Serializable]
    public class ServiceInfo
    {
        public ServiceInfo()
        {
            this.CreditLines = new List<CreditLine>();
            this.ServiceInfoAddressRels = new List<ServiceInfoAddressRel>();
            this.ServiceInfoServiceTypeRels = new List<ServiceInfoServiceTypeRel>();
            this.ServiceImages = new List<ServiceImage>();
            this.Orders = new List<Order>();
        }

        public int id { get; set; }

        public string code { get; set; }
        public string username { get; set; }
        public string title { get; set; }
        public string Description { get; set; }

        public string productid{ get; set; }

        /// <summary>
        /// QiXianStart
        /// </summary>		
        private string _qixianstart;
        public string QiXianStart
        {
            get { return _qixianstart; }
            set { _qixianstart = value; }
        }
        /// <summary>
        /// QiXianEnd
        /// </summary>		
        private string _qixianend;
        public string QiXianEnd
        {
            get { return _qixianend; }
            set { _qixianend = value; }
        }
        /// <summary>
        /// EduStart
        /// </summary>		
        private string _edustart;
        public string EduStart
        {
            get { return _edustart; }
            set { _edustart = value; }
        }
        /// <summary>
        /// EduEnd
        /// </summary>		
        private string _eduend;
        public string EduEnd
        {
            get { return _eduend; }
            set { _eduend = value; }
        }
        /// <summary>
        /// ShenPiTimeStart
        /// </summary>		
        private string _shenpitimestart;
        public string ShenPiTimeStart
        {
            get { return _shenpitimestart; }
            set { _shenpitimestart = value; }
        }
        /// <summary>
        /// ShenPiTimeEnd
        /// </summary>		
        private string _shenpitimeend;
        public string ShenPiTimeEnd
        {
            get { return _shenpitimeend; }
            set { _shenpitimeend = value; }
        }
        /// <summary>
        /// MonthLiXi
        /// </summary>		
        private string _monthlixi;
        public string MonthLiXi
        {
            get { return _monthlixi; }
            set { _monthlixi = value; }
        }
        /// <summary>
        /// QianQiCost
        /// </summary>		
        private string _qianqicost;
        public string QianQiCost
        {
            get { return _qianqicost; }
            set { _qianqicost = value; }
        }
        /// <summary>
        /// OtherCost
        /// </summary>		
        private string _othercost;
        public string OtherCost
        {
            get { return _othercost; }
            set { _othercost = value; }
        }
        /// <summary>
        /// Repayment
        /// </summary>		
        private string _repayment;
        public string Repayment
        {
            get { return _repayment; }
            set { _repayment = value; }
        }
        /// <summary>
        /// PayDescription
        /// </summary>		
        private string _paydescription;
        public string PayDescription
        {
            get { return _paydescription; }
            set { _paydescription = value; }
        }
        /// <summary>
        /// AssetParentId
        /// </summary>		
        private string _assetparentid;
        public string AssetParentId
        {
            get { return _assetparentid; }
            set { _assetparentid = value; }
        }
        /// <summary>
        /// AssetChidId
        /// </summary>		
        private string _assetchidid;
        public string AssetChidId
        {
            get { return _assetchidid; }
            set { _assetchidid = value; }
        }
        /// <summary>
        /// AssetHouseId
        /// </summary>		
        private string _assethouseid;
        public string AssetHouseId
        {
            get { return _assethouseid; }
            set { _assethouseid = value; }
        }
        /// <summary>
        /// AssetCarId
        /// </summary>		
        private string _assetcarid;
        public string AssetCarId
        {
            get { return _assetcarid; }
            set { _assetcarid = value; }
        }
        /// <summary>
        /// AssetTrustId
        /// </summary>		
        private string _assettrustid;
        public string AssetTrustId
        {
            get { return _assettrustid; }
            set { _assettrustid = value; }
        }
        /// <summary>
        /// AssetCaiLiaoId
        /// </summary>		
        private string _assetcailiaoid;
        public string AssetCaiLiaoId
        {
            get { return _assetcailiaoid; }
            set { _assetcailiaoid = value; }
        }   













        public Nullable<decimal> OriginalPrice { get; set; }
        public Nullable<int> OriginalPriceUnitld { get; set; }
        public int ClassOfMemberNumber { get; set; }
        public string AgeStart { get; set; }
        public Nullable<int> AgeEnd { get; set; }
        public int ClassTypeId { get; set; }
        public System.DateTime ClassValidityStart { get; set; }
        public System.DateTime ClassValidityEnd { get; set; }
        public decimal Price { get; set; }
        public int PriceUnitId { get; set; }
        public decimal PriceStart { get; set; }
        public decimal PriceEnd { get; set; }
        public int PriceType { get; set; }
        public Nullable<int> EnjoyCount { get; set; }
        public int SurplusEnjoyCount { get; set; }
        public string KeyWords { get; set; }
        public string Content { get; set; }
        public string img { get; set; }
        public Nullable<byte> status { get; set; }
        public Nullable<int> NewId { get; set; }
        public Nullable<System.DateTime> OnLineTime { get; set; }
        public byte[] LastModified { get; set; }
        public System.DateTime CreateTime { get; set; }
        public string Phone { get; set; }
        //public virtual Address Address { get; set; }
        public virtual ClassType ClassType { get; set; }
        public virtual ICollection<CreditLine> CreditLines { get; set; }
        public virtual PriceUnit PriceUnit { get; set; }
        public virtual PriceUnit OriginalPriceUnit { get; set; }
        public virtual ICollection<ServiceImage> ServiceImages { get; set; }
        public virtual ICollection<Order> Orders { get; set; }
        public virtual ICollection<ServiceInfoAddressRel> ServiceInfoAddressRels { get; set; }
        public virtual ICollection<ServiceInfoServiceTypeRel> ServiceInfoServiceTypeRels { get; set; }
    }
}
